﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using FG_Admin_DAL;

namespace FG_Admin_BLL
{
    public class VideosBLL
    {
        VideosDAL dal = new VideosDAL();
        /// <summary>
        /// 返回所有的视频信息
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public List<Videos> GetVideos(int PageIndex, int PageSize)
        {
            return dal.GetVideos(PageIndex, PageSize);
        }
        /// <summary>
        /// 返回对应类别的视频
        /// </summary>
        /// <param name="PageIndex"></param>
         /// <param name="PageSize"></param>
        /// <param name="Videos_Type">视频类别</param>
        /// <returns></returns>
        public List<Videos> GetVideos(int PageIndex, int PageSize, int Videos_Type)
        {
            return dal.GetVideos(PageIndex, PageSize, Videos_Type);
        }
        /// <summary>
        /// 添加视频
        /// </summary>
        /// <param name="ss">视频对象</param>
        /// <returns></returns>
        public int AddVideos(Videos ss)
        {
            return dal.AddVideos(ss);
        }
        /// <summary>
        /// 删除对应的视频
        /// </summary>
        /// <param name="VideosID">视频编号</param>
        /// <returns></returns>
        public int DelVideos(int VideosID)
        {
            return dal.DelVideos(VideosID);
        }
    }
}
